package com.vueblog.webapi.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author lsj
 * @create 2021-05-28 16:54
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class CreateOrUpdateBlogRequest {

    /**
     * 标记
     */
    @NotEmpty
    private String flag;

    /**
     * 标题
     */
    @NotEmpty
    private String title;

    /**
     * 内容
     */
    @NotEmpty
    private String content;

    /**
     * 分类id
     */
    @NotNull
    private Long typeId;

    /**
     * 标签id
     */
    @NotNull
    private List<Long> tagId;

    /**
     * 首图
     */
    @NotEmpty
    private String firstPicture;

    /**
     * 描述
     */
    @NotEmpty
    private String description;

    /**
     * 推荐开启
     */
    private Boolean recommend;

    /**
     * 转载声明开启
     */
    private Boolean shareStatement;

    /**
     * 赞赏开启
     */
    private Boolean appreciation;

    /**
     * 评论开启
     */
    private Boolean commentabled;

    /**
     * 发布开启
     */
    private Boolean published;

}
